import 'package:json_annotation/json_annotation.dart'; 
  
part 'home_page_model.g.dart';

// 首页数据模型
@JsonSerializable()
  class HomePageModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  Data data;

  HomePageModel(this.code,this.message,this.data,);

  factory HomePageModel.fromJson(Map<String, dynamic> srcJson) => _$HomePageModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$HomePageModelToJson(this);

}

  
@JsonSerializable()
  class Data extends Object {

  @JsonKey(name: 'bind_lover')
  int bindLover;

  @JsonKey(name: 'picture_sum')
  int pictureSum;

  @JsonKey(name: 'love_log_sum')
  int loveLogSum;

  @JsonKey(name: 'meeting_day_sum')
  int meetingDaySum;

  @JsonKey(name: 'in_love_day_sum')
  int inLoveDaySum;

  @JsonKey(name: 'voice_sum')
  int voiceSum;

  @JsonKey(name: 'video_sum')
  int videoSum;

  @JsonKey(name: 'login_address')
  String loginAddress;

  @JsonKey(name: 'my_info')
  My_info myInfo;

  @JsonKey(name: 'lover_info')
  Lover_info loverInfo;

  Data(this.bindLover,this.pictureSum,this.loveLogSum,this.meetingDaySum,this.inLoveDaySum,this.voiceSum,this.videoSum,this.loginAddress,this.myInfo,this.loverInfo,);

  factory Data.fromJson(Map<String, dynamic> srcJson) => _$DataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$DataToJson(this);

}

  
@JsonSerializable()
  class My_info extends Object {

  @JsonKey(name: 'uid')
  int uid;

  @JsonKey(name: 'sex')
  int sex;

  @JsonKey(name: 'phone')
  String phone;

  @JsonKey(name: 'nickname')
  String nickname;

  @JsonKey(name: 'headimg')
  String headimg;

  My_info(this.uid,this.sex,this.phone,this.nickname,this.headimg,);

  factory My_info.fromJson(Map<String, dynamic> srcJson) => _$My_infoFromJson(srcJson);

  Map<String, dynamic> toJson() => _$My_infoToJson(this);

}

  
@JsonSerializable()
  class Lover_info extends Object {

  @JsonKey(name: 'uid')
  int uid;

  @JsonKey(name: 'sex')
  int sex;

  @JsonKey(name: 'phone')
  String phone;

  @JsonKey(name: 'nickname')
  String nickname;

  @JsonKey(name: 'headimg')
  String headimg;

  Lover_info(this.uid,this.sex,this.phone,this.nickname,this.headimg,);

  factory Lover_info.fromJson(Map<String, dynamic> srcJson) => _$Lover_infoFromJson(srcJson);

  Map<String, dynamic> toJson() => _$Lover_infoToJson(this);

}

  
